package mediator;

public class MainTest16 {
    public static void main(String[] args) {
        Mediator mediator = new Mediator();
        Person tom = new Man("tom", 3, mediator);
        Person jack = new Man("jack", 4, mediator);
        Person rose = new Woman("rose", 4, mediator);

        rose.getPartner(jack);
        tom.getPartner(rose);
        tom.getPartner(jack);
    }
}
